package com.euond.permission.entities;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.euond.common.core.entities.BaseEditEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * Created by user on 2018/1/6.
 */
@Getter
@Setter
@TableName(value = "sys_user_privilege_info")
public class UserPrivilegeInfo extends BaseEditEntity {

    /**
     * 数据类型
     */
    @NotNull
    private Integer dataType;

    /**
     * 用户ID
     */
    @NotNull
    private Long userId;

    /**
     * 用户名称
     */
    @TableField(exist = false)
    private String username;

    /**
     * 数据ID
     */
    @NotNull
    private Long dataId;

    /**
     * 数据名称
     */
    @NotNull
    private String dataName;

    /**
     * 状态
     */
    @NotNull
    private Integer status;
}
